﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div> 
        <form method="post">
            <p>名称：<input type="text" name="Name"/></p>
            <p>数量：<input type="text" name="Number"/></p>
            <button type="submit">提交</button>
            @if (ViewBag.user !=null)
            {
                var user = ViewBag.a as T3._1.Models.User;
                <p>数量：@user.Name</p>
                <p>名称：@user.Number</p>
            }
        </form>
    </div>
</body>
</html>
